<div class="builder builder-list-box">

    <!-- Tab导航 -->
    <notempty name="tab_nav">
        <div class="builder-tabs builder-list-tabs">
            <div class="row">
                <div class="col-xs-12">
                    <ul class="nav nav-tabs">
                        <volist name="tab_nav.tab_list" id="tab">
                            <li class="<php>if($tab_nav['current_tab'] == $key) echo 'active';</php>"><a href="{$tab.href}">{$tab.title}</a></li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>
    </notempty>

    <!-- 顶部工具栏按钮 -->
    <notempty name="top_button_list">
        <div class="builder-toolbar builder-list-toolbar">
            <div class="row">
                <!-- 工具栏按钮 -->
                <notempty name="top_button_list">
                    <div class="col-xs-12 col-sm-9 button-list">
                        <volist name="top_button_list" id="button">
                            <a {$button.attribute}>{$button.title}</a>&nbsp;
                        </volist>
                        
                            <!-- 下拉搜索框 -->
                        <span style="float:right;">
                           	        	<notempty name="search.arr">             	
                	<select name="keyword" onChange="GaiBian(this)" >
                        			<option>请选择</option>
                        	<volist name="search.arr" id="vo">                        		 
                        	 	<option value="{$vo.fieldvalue}">{$vo.title}</option>                     	
                        	</volist>
                        	 </select>
                        	 </notempty>
                        	 <notempty name="search.arr1">
                        	 <select name="keyword" onChange="GaiBian(this)" >
                        	 	<option>请选择</option>
                        	<volist name="search.arr1" id="vo">
                        		 
                        	 	<option value="{$vo.fieldvalue}">{$vo.title}</option>
                        	
                        	</volist>
                        	 </select>
                        	 </notempty>
                        	 </span>
                    </div>
                </notempty>

                <!-- 搜索框 -->
                <notempty name="search">
                	 
                 
                    <div class="col-xs-12 col-sm-3" >
                        <div class="input-group search-form">
                        	
                        		
                        	 
                            <input type="text" name="keyword" class="search-input form-control" value="{$_GET.keyword}" placeholder="{$search.title}">
                            <span class="input-group-btn"><a class="btn btn-default" href="javascript:;" id="search" url="{$search.url}"><i class="fa fa-search"></i></a></span>
                        </div>
                    </div>
                </notempty>
            </div>
        </div>
    </notempty>

<script>
function GaiBian(osel){
        var status=osel.options[osel.selectedIndex].value;
    
		// alert(status);
		  window.location.href="?keywords="+status;

}




</script>


    <!-- 数据列表 -->
    <div class="builder-container builder-list-container">
        <div class="row">
            <div class="col-xs-12">

                <div class="builder-table">
                    <div class="panel panel-default">
                        <table class="table table-bordered table-responsive table-striped table-hover">
                            <thead>
                                <tr>
                                    <th><input class="check-all" type="checkbox"></th>
                                    <volist name="table_column_list" id="column">
                                        <th>{$column.title|htmlspecialchars}</th>
                                    </volist>
                                </tr>
                            </thead>
                            <tbody>
                                <volist name="table_data_list" id="data">
                                	 <eq name="data.emergency_level" value="紧急重要">
                                    <tr style="background:#FFDDDE;">
                                        <td><input class="ids" type="checkbox" value="{$data[$table_data_list_key]}" name="ids[]"></td>
                                        <volist name="table_column_list" id="column">
                                        	<if condition="is_array($column['name'])">
                                        		 <td>{$data[$column['name']['0']]}&nbsp;～&nbsp;{$data[$column['name']['1']]}</td>
                                        		 <else/>
                                        		 
                                        		 <td>{$data[$column['name']]}</td>
                                        	</if>
                                            
                                        </volist>
                                    </tr>
                                    </eq> 
                                     <eq name="data.emergency_level" value="紧急不重要">
                                    <tr style="background:#FFFEDD;">
                                        <td><input class="ids" type="checkbox" value="{$data[$table_data_list_key]}" name="ids[]"></td>
                                        <volist name="table_column_list" id="column">
                                        	<if condition="is_array($column['name'])">
                                        		 <td>{$data[$column['name']['0']]}&nbsp;～&nbsp;{$data[$column['name']['1']]}</td>
                                        		 <else/>
                                        		 
                                        		 <td>{$data[$column['name']]}</td>
                                        	</if>
                                            
                                        </volist>
                                    </tr>
                                    </eq>
                                      <eq name="data.emergency_level" value="重要不紧急">
                                    <tr style="background:#D8E7F9;">
                                        <td><input class="ids" type="checkbox" value="{$data[$table_data_list_key]}" name="ids[]"></td>
                                        <volist name="table_column_list" id="column">
                                        	<if condition="is_array($column['name'])">
                                        		 <td>{$data[$column['name']['0']]}&nbsp;～&nbsp;{$data[$column['name']['1']]}</td>
                                        		 <else/>
                                        		 
                                        		 <td>{$data[$column['name']]}</td>
                                        	</if>
                                            
                                        </volist>
                                    </tr>
                                    </eq>
                                      <eq name="data.emergency_level" value="不重要不紧急">
                                    <tr style="background:#DBF9D8;">
                                        <td><input class="ids" type="checkbox" value="{$data[$table_data_list_key]}" name="ids[]"></td>
                                        <volist name="table_column_list" id="column">
                                        	<if condition="is_array($column['name'])">
                                        		 <td>{$data[$column['name']['0']]}&nbsp;～&nbsp;{$data[$column['name']['1']]}</td>
                                        		 <else/>
                                        		 
                                        		 <td>{$data[$column['name']]}</td>
                                        	</if>
                                            
                                        </volist>
                                    </tr>
                                    </eq>
                                </volist>

                                <empty name="table_data_list">
                                    <tr class="builder-data-empty">
                                        <php>$tdcolspan = count($table_column_list)+1</php>
                                        <td class="text-center empty-info" colspan="{$tdcolspan}">
                                            <i class="fa fa-database"></i> 暂时没有数据<br>
                                            <span class="small">本系统由 <a href="{:C('WEBSITE_DOMAIN')}" class="text-muted" target="_blank">{:C('PRODUCT_NAME')}</a> v{:C('CURRENT_VERSION')} 强力驱动</span>
                                        </td>
                                    </tr>
                                </empty>
                            </tbody>
                        </table>
                    </div> 

                    <notempty name="table_data_page">
                        <ul class="pagination">{$table_data_page}</ul>
                    </notempty>
                </div>

            </div>
        </div>
    </div>


    <!-- 额外功能代码 -->
    {$extra_html}
</div>
